package lee.study.TestSort;

import java.util.Arrays;

public class selectSort {
    public static void selectSort(int[] array){
        for (int i=0;i<array.length;i++){
            for (int j=i+1;j<array.length;j++){
                if (array[i]>array[j]){
                    int tmp= array[i];
                    array[i]=array[j];
                    array[j]=tmp;
                }
            }
        }
    }
    public static void main(String[] args) {
        int[] array={1,7,3,9,5,96,33,64};
        selectSort(array);
        System.out.println(Arrays.toString(array));
    }
}
